package com.superc.client;

import java.util.Date;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.superc.client.data.NotebookItem;

@RemoteServiceRelativePath("MySuperToolboxService")
public interface MySuperToolboxService extends RemoteService {
	
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static MySuperToolboxServiceAsync instance;
		public static MySuperToolboxServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(MySuperToolboxService.class);
			}
			return instance;
		}
	}

	String addNotebookItem(String text,String content, String catelog, Date startTime,
			Date endTime);
	
	NotebookItem[] getNotebookItem(String catelog,int startIndex,int endIndex);
}
